package com.sz.wechat.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sz.wechat.entity.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

public interface UserMapper extends BaseMapper<User> {

    User selectByUserNameAndPassword(@Param("username") String username, @Param("password") String password);

    @Delete("DELETE FROM user WHERE id = #{id}")
    int deleteUserById(@Param("id") Long id);
}